﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Asynchronous_Programming_with_WinJS</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>

    <!-- Asynchronous_Programming_with_WinJS references -->
    <link href="/css/default.css" rel="stylesheet" />
    <!--<script src="js/math-utils.js"></script>-->
    <script src="js/workers/calculate-primes-range-worker.js"></script>
    <script src="js/primes-calculator.js"></script>
    <script src="js/file-utils.js"></script>
    <script src="/js/default.js"></script>
</head>
<body>
    <h2>Calculate prime asynchronous</h2>
    <p>Calculate primes in a given range</p>
    <label for="from">From:</label>
    <input id="rangeFrom" />
    <label for="to">To:</label>
    <input id="rangeTo" />
    <button id="calculateRange">Calculate primes in range</button>
    
    <hr />

    <p>Calculate first N primes</p>
    <label for="firstNPrimes">N:</label>
    <input id="firstNPrimes" />
    <button id="calculateFirstNPrimes">Calculate first N primes</button>
    
    <hr />

    <p>Calculate primes from 0 to N</p>
    <label for="firstNPrimes">N:</label>
    <input id="toN" />
    <button id="calculateToNPrimes">Calculate primes from 0 to N</button>

    <div id="result"></div>
</body>
</html>
